/*
 * Element.java
 * 
 * Main class for storing info in the Periodic Table Library
 * 
 * For modifications see: readme.txt
 * 
 * Author: Andres Ruiz
 * License: see License.txt
 */
public class Element
{
	private String Name;

	private int AtomicNumber;

	private String Symbol;

	private double AtomicMass;

	private double Electronegativity;

	private int Period;

	private int Group;

	private String Cat;

	public Element(String name, int atomicNumber, String symbol, double atomicMass, int period, int group, String cat)
	{
		Name = name;
		AtomicNumber = atomicNumber;
		Symbol = symbol;
		AtomicMass = atomicMass;
		Period = period;
		Group = group;
		Cat = cat;
	}

	public Element()// constructor for dummy element for debugging
	{
	}

	public double getAtomicMass()
	{
		return AtomicMass;
	}

	public int getAtomicNumber()
	{
		return AtomicNumber;
	}

	public String getCat()
	{
		return Cat;
	}

	public double getElectronegativity()
	{
		return Electronegativity;
	}

	public int getGroup()
	{
		return Group;
	}

	public String getName()
	{
		return Name;
	}

	public int getPeriod()
	{
		return Period;
	}

	public String getSymbol()
	{
		return Symbol;
	}

	public String getInfo()
	{
		String ret1 = "Element Name: " + Name;
		String ret2 = "Element Symbol: " + Symbol;
		String ret3 = "Atomic Number: " + AtomicNumber;
		String ret4 = "Atomic Mass: " + AtomicMass + " g/mol";
		String ret5 = "Category: " + Cat;

		return ret1 + "\n" + ret2 + "\n" + ret3 + "\n" + ret4 + "\n" + ret5;
	}
}
